Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new lint: string-slice #7878

Merged
merged 1 commit into from
Oct 26, 2021
Merged

new lint: string-slice #7878

merged 1 commit into from
Oct 26, 2021

Conversation

llogiq
Copy link
Contributor

@llogiq llogiq commented Oct 25, 2021

This is a restriction lint to highlight code that should have tests containing non-ascii characters. See #6623.

changelog: new lint: [string-slice]

@rust-highfive
Copy link

r? @giraffate

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Oct 25, 2021
Copy link
Contributor

@giraffate giraffate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good, thanks!

I made a small comment.

///
/// ### Known problems
/// Probably lots of false positives. If an index comes from a known valid position (e.g.
/// obtained via `char_indices` over the same string), it is totally OK.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nits

Suggested change
/// obtained via `char_indices` over the same string), it is totally OK.
/// obtained via `char_indices` over the same string), it is totally OK.

@giraffate
Copy link
Contributor

@bors r+

Thanks!

@bors
Copy link
Contributor

bors commented Oct 26, 2021

📌 Commit 999b300 has been approved by giraffate

@bors
Copy link
Contributor

bors commented Oct 26, 2021

⌛ Testing commit 999b300 with merge 075996e...

@bors
Copy link
Contributor

bors commented Oct 26, 2021

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: giraffate
Pushing 075996e to master...

@bors bors merged commit 075996e into master Oct 26, 2021
@llogiq llogiq deleted the string-slice branch October 26, 2021 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants